﻿<%@ Page Language="C#" MasterPageFile="~/Shared/Masters/Form.master" AutoEventWireup="true" CodeFile="MyNoticeDetail.aspx.cs"  Theme="Default"
Inherits="Modules_Personal_MyNoticeDetail" Title="公示详细信息" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="YYControls" Namespace="YYControls" TagPrefix="yyc" %>
<asp:Content ID="Content2" ContentPlaceHolderID="idFormMain" Runat="Server">
    <h2>
       <asp:Label ID="lblPageTitle" runat="server" Text="公示详细信息" ></asp:Label>
    </h2>
<div>
    <table cellpadding='2' cellspacing='1' class='ow_fim_mg' width='100%'>
        <tr>
            <td class='fi_l'>
                <asp:Label ID="lbCode" runat="server" Text="发布人:"></asp:Label><asp:Label ID="lblUser" runat="server"></asp:Label>
            </td>
            <td class='fi_r'>
                <asp:Label ID="lbOrg" runat="server" Text="标题："></asp:Label><asp:Label ID="lblTitle" runat="server"></asp:Label>
            </td>
            <td class='fi_l'>
                <asp:Label ID="Label2" runat="server" Text="日期："></asp:Label><asp:Label ID="lblDate" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class='fi_l' colspan="3">
                <asp:Label ID="Label1" runat="server" Text="内容:"></asp:Label>
                <span id="lblContent" runat="server" style="white-space:normal"></span>
            </td>
        </tr>
        <tr>
        <td class="fi_l" colspan="3">
              <yyc:SmartGridView ID="gvTargetEvalate" runat="server" AutoGenerateColumns="False"
            EmptyDataText="没有找到数据!">
           
            <Columns>                            
                 
               <asp:TemplateField HeaderText="指标名称" SortExpression="Target_ID">
                    <itemtemplate>
                <asp:Label runat="server" Text='<%# Eval("Name")%>'  CssClass="text_overflow"  ID="lblsTarget_ID"></asp:Label>
                </itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>
                
                 <asp:TemplateField HeaderText="指标分值" SortExpression="Score">
                    <itemtemplate>
                <asp:Label runat="server" Text='<%# Eval("Score")%>'  CssClass="text_overflow"  ID="lblScore"></asp:Label>
                </itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>
                
                 <asp:TemplateField HeaderText="录入人" >
                    <itemtemplate>
               <asp:Label runat="server" Text='<%# GetUserName(Eval("User_ID"))%>'  CssClass="text_overflow"  ID="lblUser_ID"></asp:Label>
                </itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>   
                
                 <asp:TemplateField HeaderText="录入时间" >
                    <itemtemplate>
               <asp:Label runat="server" Text='<%#  Convert.ToDateTime(Eval("InsertTime").ToString()).ToString("yyyy-MM-dd")%>'  CssClass="text_overflow"  ID="lblInsertTime"></asp:Label>
                </itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>   
               <asp:TemplateField HeaderText="备注" >
                    <itemtemplate>
                <asp:Label runat="server"  ID="lblRemark" Text='<%# Eval("Remark")%>'  CssClass="text_overflow"></asp:Label>
                </itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>   
                           
            </Columns>
        </yyc:SmartGridView>
        <webdiyer:AspNetPager ID="AspNetPager" CssClass="aspNetPager" ShowBoxThreshold="1"
            runat="server" HorizontalAlign="Right" PageSize="5" AlwaysShow="True" FirstPageText="首页"
            LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" Width="98%" CustomInfoClass="aspNetPager"
            LayoutType="Div" PageIndexBoxType="TextBox" ShowPageIndexBox="Auto" OnPageChanged="AspNetPager_PageChanged">
        </webdiyer:AspNetPager>
  
        </td>
        </tr>
        <tr>
            <td class='fi_l' colspan="3">
                <span id="spnAttachList" runat="server"></span>
            </td>
        </tr>
    </table>
</div>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="idFormButton" Runat="Server">
    <asp:Button ID="CloseButton" runat="server" Text="关闭" 
        OnClientClick="return closeForm();" />   
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="idScript" runat="Server">

    <script type="text/javascript">
        function closeForm() {
            window.returnValue="false";
            window.opener=null;
            window.close();
            return false;
        } 
       
           
    </script>

</asp:Content>



